﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MsTestUtilities
{
    internal static class ExceptionAnalyzer
    {
        public static Exception GetException(Action action)
        {
            try
            {
                action();
            }
            catch(Exception e)
            {
                return e;
            }

            return null;
        }
    }
}
